<%--
  Created by IntelliJ IDEA.
  User: 大松
  Date: 2022/10/24
  Time: 17:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>基本资料</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/layui-v2.7.6/layui/css/layui.css">
    <script src="${pageContext.request.contextPath}/static/layui-v2.7.6/layui/layui.js"></script>
</head>
<body>
<form class="layui-form" action="">
    <%--标题--%>
    <div class="registerbox-title" style="text-align: center;font-size: 20px;padding: 15px" >用户${user.username}的个人资料</div>

    <div class="layui-form-item">
        <label class="layui-form-label">用户账号</label>
        <div class="layui-input-inline">
            <input type="text" name="username" value="${user.username}" readonly="true" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">性别</label>
        <div class="layui-input-inline">
            <input type="text" name="sex" value="${user1.sex}" readonly="true" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">角色</label>
            <div class="layui-input-inline">
                <input type="text" name="${user1.role.id}" value="${user1.role.rolename}" readonly="true" class="layui-input">
            </div>
    </div>
    <%--状态--%>
    <div class="layui-form-item">
        <label class="layui-form-label">状态</label>
        <div class="layui-input-block">
            <input type="radio" name="sex" value="启用" title="启用" <c:if test="${user1.status=='1'}">checked</c:if> disabled>
            <input type="radio" name="sex" value="禁用" title="禁用" <c:if test="${user1.status=='2'}">checked</c:if> disabled>
        </div>
    </div>
    <%--开关   选中的时候 on   未选中的时候 off  一般不用开关传值   on 1  off 2--%>
    <div class="layui-form-item">
        <label class="layui-form-label">头像</label>
        <div class="layui-upload" style="margin-left: 90px">
            <div class="layui-upload-list" style="margin:10px -3px;">
                <img class="layui-upload-img"
                     width="100px" height="100px" style="border-radius: 50%" src="${user.imgpath}">
                <p id="demoText"></p>
            </div>
        </div>
    </div>
</form>
</body>
</html>
